package com.yjy.fuyao.ucenter.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yjy.fuyao.ucenter.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yjy.fuyao.ucenter.entity.query.UserQuery;
import com.yjy.fuyao.ucenter.entity.vo.LoginVo;
import com.yjy.fuyao.ucenter.entity.vo.RegisterVo;

import java.util.Map;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author yjy
 * @since 2021-08-21
 */
public interface UserService extends IService<User> {
    String login(LoginVo loginVo);
    void register(RegisterVo registerVo);
    User getLoginInfo(String userId);

    User getByOpenid(String openid);

    IPage<User> listPage(Page<User> pageParam, UserQuery userQuery);

    boolean changeIsDisabled(String id, Integer isDisabled);

    Integer countRegisterByDay(String day);

}
